package com.example.mycarcalling.bean;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.math.BigDecimal;
import java.util.Date;

public class Navigation {
    private Long navigationId;

    private Long publishingUser;

    private String sName;

    private String eName;

    private Integer distance;

    private Integer duratino;

    private String city;

    private BigDecimal startLongitude;

    private BigDecimal startLatitude;

    private BigDecimal endLongitude;

    private BigDecimal endLatitude;

    private BigDecimal sLogitude;

    private BigDecimal sLatitude;

    private BigDecimal eLogitude;

    private BigDecimal eLatitude;

    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss", locale = "zh", timezone = "GMT+8")
    private Date publishingTime;

    private Integer status;

    public Navigation(Long navigationId, Long publishingUser, String sName, String eName, Integer distance, Integer duratino, String city, BigDecimal startLongitude, BigDecimal startLatitude, BigDecimal endLongitude, BigDecimal endLatitude, BigDecimal sLogitude, BigDecimal sLatitude, BigDecimal eLogitude, BigDecimal eLatitude, Date publishingTime, Integer status) {
        this.navigationId = navigationId;
        this.publishingUser = publishingUser;
        this.sName = sName;
        this.eName = eName;
        this.distance = distance;
        this.duratino = duratino;
        this.city = city;
        this.startLongitude = startLongitude;
        this.startLatitude = startLatitude;
        this.endLongitude = endLongitude;
        this.endLatitude = endLatitude;
        this.sLogitude = sLogitude;
        this.sLatitude = sLatitude;
        this.eLogitude = eLogitude;
        this.eLatitude = eLatitude;
        this.publishingTime = publishingTime;
        this.status = status;
    }

    public Navigation() {
        super();
    }

    public Long getNavigationId() {
        return navigationId;
    }

    public void setNavigationId(Long navigationId) {
        this.navigationId = navigationId;
    }

    public Long getPublishingUser() {
        return publishingUser;
    }

    public void setPublishingUser(Long publishingUser) {
        this.publishingUser = publishingUser;
    }

    public String getsName() {
        return sName;
    }

    public void setsName(String sName) {
        this.sName = sName == null ? null : sName.trim();
    }

    public String geteName() {
        return eName;
    }

    public void seteName(String eName) {
        this.eName = eName == null ? null : eName.trim();
    }

    public Integer getDistance() {
        return distance;
    }

    public void setDistance(Integer distance) {
        this.distance = distance;
    }

    public Integer getDuratino() {
        return duratino;
    }

    public void setDuratino(Integer duratino) {
        this.duratino = duratino;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city == null ? null : city.trim();
    }

    public BigDecimal getStartLongitude() {
        return startLongitude;
    }

    public void setStartLongitude(BigDecimal startLongitude) {
        this.startLongitude = startLongitude;
    }

    public BigDecimal getStartLatitude() {
        return startLatitude;
    }

    public void setStartLatitude(BigDecimal startLatitude) {
        this.startLatitude = startLatitude;
    }

    public BigDecimal getEndLongitude() {
        return endLongitude;
    }

    public void setEndLongitude(BigDecimal endLongitude) {
        this.endLongitude = endLongitude;
    }

    public BigDecimal getEndLatitude() {
        return endLatitude;
    }

    public void setEndLatitude(BigDecimal endLatitude) {
        this.endLatitude = endLatitude;
    }

    public BigDecimal getsLogitude() {
        return sLogitude;
    }

    public void setsLogitude(BigDecimal sLogitude) {
        this.sLogitude = sLogitude;
    }

    public BigDecimal getsLatitude() {
        return sLatitude;
    }

    public void setsLatitude(BigDecimal sLatitude) {
        this.sLatitude = sLatitude;
    }

    public BigDecimal geteLogitude() {
        return eLogitude;
    }

    public void seteLogitude(BigDecimal eLogitude) {
        this.eLogitude = eLogitude;
    }

    public BigDecimal geteLatitude() {
        return eLatitude;
    }

    public void seteLatitude(BigDecimal eLatitude) {
        this.eLatitude = eLatitude;
    }

    public Date getPublishingTime() {
        return publishingTime;
    }

    public void setPublishingTime(Date publishingTime) {
        this.publishingTime = publishingTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}